package com.yukino.pojo.requestBody;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

@Data
@Validated
public class RegisterBody {

    /**
     * 用户名
     */
    @NotNull(message = "用户名不能为空")
    private String username;

    /**
     * 用户密码
     */
    @NotNull(message = "密码不能为空")
    private String password;

    /**
     * 手机号
     */
    @NotNull(message = "手机号不能为空")
    private String phone;
}
